package com.example.light.system.service.impl;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.light.system.common.Result;
import com.example.light.system.dto.permissionTree;
import com.example.light.system.entity.permission;

import java.util.ArrayList;

public interface IPermissionService extends IService<permission> {

    //查询所有权限信息
    Result<ArrayList<permissionTree>> searchAllPermission();

    //查询角色权限
    Result<ArrayList<Integer>> searchRolePermission(Integer roleId);
}
